//
//  HomeFoodTableViewCell.m
//  CivilianTravel
//
//  Created by 许仕杰 on 16/7/21.
//  Copyright © 2016年 许仕杰. All rights reserved.
//

#import "HomeFoodTableViewCell.h"
#import "HomeFoodModel.h"

@interface HomeFoodTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *url;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *poiname;

@property (weak, nonatomic) IBOutlet UILabel *addr;

@end

@implementation HomeFoodTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setCellWithModel:(HomeFoodModel *)model{
    [self.url sd_setImageWithURL:[NSURL URLWithString:model.url]];
    self.name.text = model.name;
    self.poiname.text = [@"推荐:" stringByAppendingString:model.poiname];
    self.addr.text = [@"地址:" stringByAppendingString:model.addr];
}



@end
